package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.entity.UserComment;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 用户评论表 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface UserCommentMapper extends BaseDao<UserComment> {

    List<UserComment> queryUserCommentListByParm(@Param("columnTitle") String columnTitle,
            @Param("type") Integer type, @Param("replyStatus") Integer replyStatus,
            @Param("auditStatus") Integer auditStatus,
            @Param("createStartTime") Date createStartTime, @Param("createEndTime") Date createEndTime);

    void auditUserCommentSuccess(@Param("commentId") Long commentId);

    void updateUserComment(@Param("commentId") Long commentId);

    List<UserComment> queryUserCommentListByColumnId(@Param("columnId") Long columnId,
            @Param("userId") Integer userId);

    void addUserCommentLike(@Param("commentId") Long commentId);
}